package com.freak.kotlinfitnessserver

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.freak.kotlinfitnessserver.activity.FitnessTypeActivity
import com.freak.kotlinfitnessserver.activity.SspServerActivity
import com.freak.kotlinfitnessserver.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {
    private lateinit var binding: ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)
        binding.linearLayoutCompatConfigBack.setOnClickListener {
            finish()
        }
        binding.buttonBleServer.setOnClickListener {
            val intent = Intent()
            intent.setClass(this, FitnessTypeActivity::class.java)
            startActivity(intent)
        }
        binding.buttonSspServer.setOnClickListener {
            val intent = Intent()
            intent.setClass(this, SspServerActivity::class.java)
            startActivity(intent)
        }
    }
}
